CC=g++
CFLAGS=-I/usr/local/include
LFLAGS=-L/usr/local/lib -ltiff -lopencv_core -lopencv_highgui -lopencv_imgcodecs -lopencv_imgproc
DEPS = GeoTiffReader.hxx GeoTiffImage.hxx
OBJ = GeoTiffImage.o GeoTiffReader.o TiffImageSplitter.o


%.o:%.cxx $(DEPS)
	$(CC) -c -o $@ $< $(CFLAGS)

TIFFImageSplitter: $(OBJ)
	$(CC) -o $@ $^ $(LFLAGS)

clean:
	rm *.o
	rm TIFFImageSplitter
